package concurrency.multithreading;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author xiaoming
 * @version 1.0
 * @date 2019-03-14 16:16
 **/
public class UserRejectHandeler implements RejectedExecutionHandler {
    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        System.out.println("task rejected." + executor.toString());
    }
}
